# @Author: Eric Ito
# @Date: 1/26/2009
# @Name: Project Euler Problem 12

from util import *

def main():
    i=1
    tri_counter = 1
    tri_num = 0
    while 1:
        tri_num += i
        if  tri_num % 10 == 0:
            l = getNumDivisors(tri_num)
            print tri_num,l
            if l >= 500:
                print tri_num
                return
        i += 1

if __name__ == "__main__":
    main()